f2fs.h (437275272f9e635673f065300e5d95226a25cb06) f2fs.h (e9750824114ff939d9da299e73651add6aa65456)
1/*
2 * fs/f2fs/f2fs.h
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 90 unchanged lines hidden (view full) ---

99static inline int update_sits_in_cursum(struct f2fs_summary_block *rs, int i)
100{
101 int before = sits_in_cursum(rs);
102 rs->n_sits = cpu_to_le16(before + i);
103 return before;
104}
105
106/*
1/*
2 * fs/f2fs/f2fs.h
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 90 unchanged lines hidden (view full) ---

99static inline int update_sits_in_cursum(struct f2fs_summary_block *rs, int i)
100{
101 int before = sits_in_cursum(rs);
102 rs->n_sits = cpu_to_le16(before + i);
103 return before;
104}
105
106/*
107 * ioctl commands
108 */
109#define F2FS_IOC_GETFLAGS FS_IOC_GETFLAGS
110#define F2FS_IOC_SETFLAGS FS_IOC_SETFLAGS
111
112#if defined(__KERNEL__) && defined(CONFIG_COMPAT)
113/*
114 * ioctl commands in 32 bit emulation
115 */
116#define F2FS_IOC32_GETFLAGS FS_IOC32_GETFLAGS
117#define F2FS_IOC32_SETFLAGS FS_IOC32_SETFLAGS
118#endif
119
120/*
107 * For INODE and NODE manager
108 */
109#define XATTR_NODE_OFFSET (-1) /*
110 * store xattrs to one node block per
111 * file keeping -1 as its node offset to
112 * distinguish from index node blocks.
113 */
114#define RDONLY_NODE 1 /*

--- 730 unchanged lines hidden (view full) ---

845 * file.c
846 */
847int f2fs_sync_file(struct file *, loff_t, loff_t, int);
848void truncate_data_blocks(struct dnode_of_data *);
849void f2fs_truncate(struct inode *);
850int f2fs_setattr(struct dentry *, struct iattr *);
851int truncate_hole(struct inode *, pgoff_t, pgoff_t);
852long f2fs_ioctl(struct file *, unsigned int, unsigned long);
121 * For INODE and NODE manager
122 */
123#define XATTR_NODE_OFFSET (-1) /*
124 * store xattrs to one node block per
125 * file keeping -1 as its node offset to
126 * distinguish from index node blocks.
127 */
128#define RDONLY_NODE 1 /*

--- 730 unchanged lines hidden (view full) ---

859 * file.c
860 */
861int f2fs_sync_file(struct file *, loff_t, loff_t, int);
862void truncate_data_blocks(struct dnode_of_data *);
863void f2fs_truncate(struct inode *);
864int f2fs_setattr(struct dentry *, struct iattr *);
865int truncate_hole(struct inode *, pgoff_t, pgoff_t);
866long f2fs_ioctl(struct file *, unsigned int, unsigned long);
867long f2fs_compat_ioctl(struct file *, unsigned int, unsigned long);
853
854/*
855 * inode.c
856 */
857void f2fs_set_inode_flags(struct inode *);
858struct inode *f2fs_iget(struct super_block *, unsigned long);
859void update_inode(struct inode *, struct page *);
860int f2fs_write_inode(struct inode *, struct writeback_control *);

--- 232 unchanged lines hidden ---
868
869/*
870 * inode.c
871 */
872void f2fs_set_inode_flags(struct inode *);
873struct inode *f2fs_iget(struct super_block *, unsigned long);
874void update_inode(struct inode *, struct page *);
875int f2fs_write_inode(struct inode *, struct writeback_control *);

--- 232 unchanged lines hidden ---