Browse Source

Merge tag 'jfs-for-4.20' of git://github.com/kleikamp/linux-shaggy

Pull jfs updates from David Kleikamp:
 "Just a few small fixes"

* tag 'jfs-for-4.20' of git://github.com/kleikamp/linux-shaggy:
  jfs: remove redundant dquot_initialize() in jfs_evict_inode()
  jfs: remove quota option from ignore list
  jfs: cache NULL when both default_acl and acl are NULL
Linus Torvalds 6 years ago
parent
commit
deba28b12b
3 changed files with 5 additions and 2 deletions
  1. 4 0
      fs/jfs/acl.c
  2. 0 1
      fs/jfs/inode.c
  3. 1 1
      fs/jfs/super.c

+ 4 - 0
fs/jfs/acl.c

@@ -146,12 +146,16 @@ int jfs_init_acl(tid_t tid, struct inode *inode, struct inode *dir)
 	if (default_acl) {
 	if (default_acl) {
 		rc = __jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, default_acl);
 		rc = __jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, default_acl);
 		posix_acl_release(default_acl);
 		posix_acl_release(default_acl);
+	} else {
+		inode->i_default_acl = NULL;
 	}
 	}
 
 
 	if (acl) {
 	if (acl) {
 		if (!rc)
 		if (!rc)
 			rc = __jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, acl);
 			rc = __jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, acl);
 		posix_acl_release(acl);
 		posix_acl_release(acl);
+	} else {
+		inode->i_acl = NULL;
 	}
 	}
 
 
 	JFS_IP(inode)->mode2 = (JFS_IP(inode)->mode2 & 0xffff0000) |
 	JFS_IP(inode)->mode2 = (JFS_IP(inode)->mode2 & 0xffff0000) |

+ 0 - 1
fs/jfs/inode.c

@@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode)
 			/*
 			/*
 			 * Free the inode from the quota allocation.
 			 * Free the inode from the quota allocation.
 			 */
 			 */
-			dquot_initialize(inode);
 			dquot_free_inode(inode);
 			dquot_free_inode(inode);
 		}
 		}
 	} else {
 	} else {

+ 1 - 1
fs/jfs/super.c

@@ -247,7 +247,7 @@ static const match_table_t tokens = {
 	{Opt_resize_nosize, "resize"},
 	{Opt_resize_nosize, "resize"},
 	{Opt_errors, "errors=%s"},
 	{Opt_errors, "errors=%s"},
 	{Opt_ignore, "noquota"},
 	{Opt_ignore, "noquota"},
-	{Opt_ignore, "quota"},
+	{Opt_quota, "quota"},
 	{Opt_usrquota, "usrquota"},
 	{Opt_usrquota, "usrquota"},
 	{Opt_grpquota, "grpquota"},
 	{Opt_grpquota, "grpquota"},
 	{Opt_uid, "uid=%u"},
 	{Opt_uid, "uid=%u"},