summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/inode.c
diff options
context:
space:
mode:
authorMartin Brandenburg2018-02-12 18:04:57 +0100
committerMike Marshall2019-05-03 20:32:38 +0200
commit5e4f606e26d6a1df6784f5833ea258047ac93254 (patch)
treed6a97f4c40806e71209a445034dfa37e761fff3e /fs/orangefs/inode.c
parentorangefs: update attributes rather than relying on server (diff)
downloadkernel-qcow2-linux-5e4f606e26d6a1df6784f5833ea258047ac93254.tar.gz
kernel-qcow2-linux-5e4f606e26d6a1df6784f5833ea258047ac93254.tar.xz
kernel-qcow2-linux-5e4f606e26d6a1df6784f5833ea258047ac93254.zip
orangefs: hold i_lock during inode_getattr
This should be a no-op now. When inode writeback works, this will prevent a getattr from overwriting inode data while an inode is transitioning to dirty. Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/inode.c')
-rw-r--r--fs/orangefs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 152c3683d881..222ef7be0c7c 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -253,8 +253,8 @@ int orangefs_getattr(const struct path *path, struct kstat *stat,
struct inode *inode = path->dentry->d_inode;
gossip_debug(GOSSIP_INODE_DEBUG,
- "orangefs_getattr: called on %pd\n",
- path->dentry);
+ "orangefs_getattr: called on %pd mask %u\n",
+ path->dentry, request_mask);
ret = orangefs_inode_getattr(inode,
request_mask & STATX_SIZE ? ORANGEFS_GETATTR_SIZE : 0);