Skip to content

Commit deba28b

Browse files
committed
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
2 parents 318b067 + 1390643 commit deba28b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

fs/jfs/acl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,16 @@ int jfs_init_acl(tid_t tid, struct inode *inode, struct inode *dir)
146146
if (default_acl) {
147147
rc = __jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, default_acl);
148148
posix_acl_release(default_acl);
149+
} else {
150+
inode->i_default_acl = NULL;
149151
}
150152

151153
if (acl) {
152154
if (!rc)
153155
rc = __jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, acl);
154156
posix_acl_release(acl);
157+
} else {
158+
inode->i_acl = NULL;
155159
}
156160

157161
JFS_IP(inode)->mode2 = (JFS_IP(inode)->mode2 & 0xffff0000) |

fs/jfs/inode.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode)
166166
/*
167167
* Free the inode from the quota allocation.
168168
*/
169-
dquot_initialize(inode);
170169
dquot_free_inode(inode);
171170
}
172171
} else {

fs/jfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static const match_table_t tokens = {
247247
{Opt_resize_nosize, "resize"},
248248
{Opt_errors, "errors=%s"},
249249
{Opt_ignore, "noquota"},
250-
{Opt_ignore, "quota"},
250+
{Opt_quota, "quota"},
251251
{Opt_usrquota, "usrquota"},
252252
{Opt_grpquota, "grpquota"},
253253
{Opt_uid, "uid=%u"},

0 commit comments

Comments
 (0)