Thread (4 messages) 4 messages, 3 authors, 2014-07-25

Re: [PATCH] ext4: Add support for FIDTRIM, a best-effort ioctl for deep discard trim

From: Dave Chinner <david@fromorbit.com>
Date: 2014-07-24 12:08:01
Also in: linux-fsdevel

On Wed, Jul 23, 2014 at 04:47:18PM -0700, JP Abgrall wrote:
quoted hunk ↗ jump to hunk
diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h
index ca1a11b..a1816ca 100644
--- a/include/uapi/linux/fs.h
+++ b/include/uapi/linux/fs.h
@@ -156,6 +156,7 @@ struct inodes_stat_t {
 #define FIFREEZE	_IOWR('X', 119, int)	/* Freeze */
 #define FITHAW		_IOWR('X', 120, int)	/* Thaw */
 #define FITRIM		_IOWR('X', 121, struct fstrim_range)	/* Trim */
+#define FIDTRIM	_IOWR('X', 122, struct fstrim_range)	/* Deep discard trim */
The 'X' ioctl namespace is actually XFS's ioctl namespace. FIDTRIM
should be in the 'f' namespace - FIFREEZE and FITHAW were inherited
from XFS, which is where that came from originally, and it got
propagated to FITRIM and it wasn't caught on review. I only noticed
that now:

#define XFS_IOC_FSSETDM_BY_HANDLE    _IOW ('X', 121, struct xfs_fsop_setdm_handlereq)
#define XFS_IOC_ATTRLIST_BY_HANDLE   _IOW ('X', 122, struct xfs_fsop_attrlist_handlereq)

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help