diff options
author | Dave Kleikamp <dave.kleikamp@oracle.com> | 2014-02-13 15:40:13 -0600 |
---|---|---|
committer | Dave Kleikamp <dave.kleikamp@oracle.com> | 2014-02-13 15:56:05 -0600 |
commit | 844fa1b5f8493cff4b976fa7a5b9ebeeafdd75cc (patch) | |
tree | d00da331c3c800d4507216d7a77b4f5d71ac0843 /fs/jfs | |
parent | c18f7b51200c3c8b76c63e391f9995b65ace9c83 (diff) | |
download | op-kernel-dev-844fa1b5f8493cff4b976fa7a5b9ebeeafdd75cc.zip op-kernel-dev-844fa1b5f8493cff4b976fa7a5b9ebeeafdd75cc.tar.gz |
jfs: set i_ctime when setting ACL
This fixes a regression in 3.14-rc1 where xfstests generic/307 fails.
jfs sets the ctime on the inode when writing an xattr. Previously,
jfs went ahead and stored an acl that can be completely represented
in the traditional permission bits, so the ctime was always set in
the xattr code. The new code doesn't bother storing the acl in that
case, thus the ctime isn't getting set.
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Reported-by: Michael L. Semon <mlsemon35@gmail.com>
Diffstat (limited to 'fs/jfs')
-rw-r--r-- | fs/jfs/acl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jfs/acl.c b/fs/jfs/acl.c index e973b85..5a8ea16 100644 --- a/fs/jfs/acl.c +++ b/fs/jfs/acl.c @@ -86,6 +86,8 @@ static int __jfs_set_acl(tid_t tid, struct inode *inode, int type, rc = posix_acl_equiv_mode(acl, &inode->i_mode); if (rc < 0) return rc; + inode->i_ctime = CURRENT_TIME; + mark_inode_dirty(inode); if (rc == 0) acl = NULL; break; |