projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs/ntfs3: Implement super_operations::shutdown
[linux-block.git]
/
fs
/
ntfs3
/
xattr.c
diff --git
a/fs/ntfs3/xattr.c
b/fs/ntfs3/xattr.c
index 4274b6f31cfa1c49fec865fe0e1d81ab152e040b..071356d096d83fd1980c44cb1e8db74eb456d1c4 100644
(file)
--- a/
fs/ntfs3/xattr.c
+++ b/
fs/ntfs3/xattr.c
@@
-744,6
+744,9
@@
static int ntfs_getxattr(const struct xattr_handler *handler, struct dentry *de,
int err;
struct ntfs_inode *ni = ntfs_i(inode);
+ if (unlikely(ntfs3_forced_shutdown(inode->i_sb)))
+ return -EIO;
+
/* Dispatch request. */
if (!strcmp(name, SYSTEM_DOS_ATTRIB)) {
/* system.dos_attrib */