aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hpfs/dir.c')
-rw-r--r--fs/hpfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hpfs/dir.c b/fs/hpfs/dir.c
index 7b9150c2e75c..fa6bbb4f509f 100644
--- a/fs/hpfs/dir.c
+++ b/fs/hpfs/dir.c
@@ -264,7 +264,7 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned in
264 hpfs_result = hpfs_i(result); 264 hpfs_result = hpfs_i(result);
265 if (!de->directory) hpfs_result->i_parent_dir = dir->i_ino; 265 if (!de->directory) hpfs_result->i_parent_dir = dir->i_ino;
266 266
267 if (de->has_acl || de->has_xtd_perm) if (!(dir->i_sb->s_flags & MS_RDONLY)) { 267 if (de->has_acl || de->has_xtd_perm) if (!sb_rdonly(dir->i_sb)) {
268 hpfs_error(result->i_sb, "ACLs or XPERM found. This is probably HPFS386. This driver doesn't support it now. Send me some info on these structures"); 268 hpfs_error(result->i_sb, "ACLs or XPERM found. This is probably HPFS386. This driver doesn't support it now. Send me some info on these structures");
269 goto bail1; 269 goto bail1;
270 } 270 }