linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/stat: set attributes_mask for STATX_ATTR_DAX
@ 2020-11-21  0:33 XiaoLi Feng
  2020-11-21  0:58 ` Randy Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: XiaoLi Feng @ 2020-11-21  0:33 UTC (permalink / raw)
  To: linux-kernel, ira.weiny, darrick.wong; +Cc: Xiaoli Feng

From: Xiaoli Feng <fengxiaoli0714@gmail.com>

keep attributes and attributes_mask are consistent for
STATX_ATTR_DAX.
---
 fs/stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/stat.c b/fs/stat.c
index dacecdda2e79..914a61d256b0 100644
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -82,7 +82,7 @@ int vfs_getattr_nosec(const struct path *path, struct kstat *stat,
 
 	if (IS_DAX(inode))
 		stat->attributes |= STATX_ATTR_DAX;
-
+	stat->attributes_mask |= STATX_ATTR_DAX;
 	if (inode->i_op->getattr)
 		return inode->i_op->getattr(path, stat, request_mask,
 					    query_flags);
-- 
2.18.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-23 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-21  0:33 [PATCH] fs/stat: set attributes_mask for STATX_ATTR_DAX XiaoLi Feng
2020-11-21  0:58 ` Randy Dunlap
2020-11-21  2:03   ` Darrick J. Wong
2020-11-22 15:57     ` Xiaoli Feng
2020-11-23 21:37     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).