git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fs/sysv: return f_fsid for statfs(2)
[safe/jmp/linux-2.6]
/
fs
/
sysv
/
sysv.h
diff --git
a/fs/sysv/sysv.h
b/fs/sysv/sysv.h
index
a320edc
..
5784a31
100644
(file)
--- a/
fs/sysv/sysv.h
+++ b/
fs/sysv/sysv.h
@@
-136,8
+136,12
@@
extern unsigned long sysv_count_free_blocks(struct super_block *);
/* itree.c */
extern void sysv_truncate(struct inode *);
/* itree.c */
extern void sysv_truncate(struct inode *);
+extern int __sysv_write_begin(struct file *file, struct address_space *mapping,
+ loff_t pos, unsigned len, unsigned flags,
+ struct page **pagep, void **fsdata);
/* inode.c */
/* inode.c */
+extern struct inode *sysv_iget(struct super_block *, unsigned int);
extern int sysv_write_inode(struct inode *, int);
extern int sysv_sync_inode(struct inode *);
extern int sysv_sync_file(struct file *, struct dentry *, int);
extern int sysv_write_inode(struct inode *, int);
extern int sysv_sync_inode(struct inode *);
extern int sysv_sync_file(struct file *, struct dentry *, int);
@@
-165,8
+169,8
@@
extern const struct inode_operations sysv_fast_symlink_inode_operations;
extern const struct file_operations sysv_file_operations;
extern const struct file_operations sysv_dir_operations;
extern const struct address_space_operations sysv_aops;
extern const struct file_operations sysv_file_operations;
extern const struct file_operations sysv_dir_operations;
extern const struct address_space_operations sysv_aops;
-extern struct super_operations sysv_sops;
-extern struct dentry_operations sysv_dentry_operations;
+extern
const
struct super_operations sysv_sops;
+extern
const
struct dentry_operations sysv_dentry_operations;
enum {
enum {
@@
-213,9
+217,9
@@
static inline __fs32 fs32_add(struct sysv_sb_info *sbi, __fs32 *n, int d)
if (sbi->s_bytesex == BYTESEX_PDP)
*(__u32*)n = PDP_swab(PDP_swab(*(__u32*)n)+d);
else if (sbi->s_bytesex == BYTESEX_LE)
if (sbi->s_bytesex == BYTESEX_PDP)
*(__u32*)n = PDP_swab(PDP_swab(*(__u32*)n)+d);
else if (sbi->s_bytesex == BYTESEX_LE)
-
*(__le32*)n = cpu_to_le32(le32_to_cpu(*(__le32*)n)+
d);
+
le32_add_cpu((__le32 *)n,
d);
else
else
-
*(__be32*)n = cpu_to_be32(be32_to_cpu(*(__be32*)n)+
d);
+
be32_add_cpu((__be32 *)n,
d);
return *n;
}
return *n;
}
@@
-238,9
+242,9
@@
static inline __fs16 cpu_to_fs16(struct sysv_sb_info *sbi, __u16 n)
static inline __fs16 fs16_add(struct sysv_sb_info *sbi, __fs16 *n, int d)
{
if (sbi->s_bytesex != BYTESEX_BE)
static inline __fs16 fs16_add(struct sysv_sb_info *sbi, __fs16 *n, int d)
{
if (sbi->s_bytesex != BYTESEX_BE)
-
*(__le16*)n = cpu_to_le16(le16_to_cpu(*(__le16 *)n)+
d);
+
le16_add_cpu((__le16 *)n,
d);
else
else
-
*(__be16*)n = cpu_to_be16(be16_to_cpu(*(__be16 *)n)+
d);
+
be16_add_cpu((__be16 *)n,
d);
return *n;
}
return *n;
}