[7/7] lustre: ioctl: Add BLKSSZGET ioctl support
diff mbox series

Message ID 1539543646-29717-8-git-send-email-jsimmons@infradead.org
State New
Headers show
Series
  • lustre: project quota support and BLKSZGET
Related show

Commit Message

James Simmons Oct. 14, 2018, 7 p.m. UTC
From: Emoly Liu <emoly@whamcloud.com>

Add BLKSSZGET ioctl and return PAGE_SIZE for the minimun
alignment from ll_file_ioctl() for this call.

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
WC-bug-id: https://jira.whamcloud.com/browse/LU-9347
Reviewed-on: https://review.whamcloud.com/28578
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 drivers/staging/lustre/lustre/llite/file.c | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox series

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index f69eefc..d3ddfd2 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -2618,6 +2618,8 @@  int ll_ioctl_fssetxattr(struct inode *inode, unsigned int cmd,
 		return ll_ioctl_fsgetxattr(inode, cmd, arg);
 	case FS_IOC_FSSETXATTR:
 		return ll_ioctl_fssetxattr(inode, cmd, arg);
+	case BLKSSZGET:
+		return put_user(PAGE_SIZE, (int __user *)arg);
 	default: {
 		int err;