You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
f2fs: add compat_ioctl to provide backward compatability
adding compat_ioctl to provide support for backward comptability - 32bit binary execution on 64bit kernel. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
@@ -103,6 +103,20 @@ static inline int update_sits_in_cursum(struct f2fs_summary_block *rs, int i)
|
||||
return before;
|
||||
}
|
||||
|
||||
/*
|
||||
* ioctl commands
|
||||
*/
|
||||
#define F2FS_IOC_GETFLAGS FS_IOC_GETFLAGS
|
||||
#define F2FS_IOC_SETFLAGS FS_IOC_SETFLAGS
|
||||
|
||||
#if defined(__KERNEL__) && defined(CONFIG_COMPAT)
|
||||
/*
|
||||
* ioctl commands in 32 bit emulation
|
||||
*/
|
||||
#define F2FS_IOC32_GETFLAGS FS_IOC32_GETFLAGS
|
||||
#define F2FS_IOC32_SETFLAGS FS_IOC32_SETFLAGS
|
||||
#endif
|
||||
|
||||
/*
|
||||
* For INODE and NODE manager
|
||||
*/
|
||||
@@ -850,6 +864,7 @@ void f2fs_truncate(struct inode *);
|
||||
int f2fs_setattr(struct dentry *, struct iattr *);
|
||||
int truncate_hole(struct inode *, pgoff_t, pgoff_t);
|
||||
long f2fs_ioctl(struct file *, unsigned int, unsigned long);
|
||||
long f2fs_compat_ioctl(struct file *, unsigned int, unsigned long);
|
||||
|
||||
/*
|
||||
* inode.c
|
||||
|
||||
Reference in New Issue
Block a user