Commit bb772c58 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] dirsync

An implementation of directory-synchronous mounts.

I sent this out some months ago and it didn't generate a lot of
interest.  Later we had one of the usual cheery exchanges with Wietse
Venema (postfix development) and he agreed that directory synchronous
mounts were something that he could use, and that there was benefit in
implementing them in Linux.  If you choose to apply this I'll push the
2.4 patch.



Patch against e2fsprogs-1.26:
        http://www.zip.com.au/~akpm/linux/dirsync/e2fsprogs-1.26.patch

Patch against util-linux-2.11n:
        http://www.zip.com.au/~akpm/linux/dirsync/util-linux-2.11n.patch


The kernel patch includes implementations for ext2 and ext3. It's
pretty simple.

- When dirsync is in operation against a directory, the following operations
  are synchronous within that directory:  create, link, unlink, symlink,
  mkdir, rmdir, mknod, rename (synchronous if either the source or dest
  directory is dirsync).

- dirsync is a subset of sync.  So `mount -o sync' or `chattr +S'
  give you everything which `mount -o dirsync' or `chattr +D' gives,
  plus synchronous file writes.

- ext2's inode.i_attr_flags is unused, and is removed.

- mount /dev/foo /mnt/bar -o dirsync  works as expected.

- An ext2 or ext3 directory tree can be set dirsync with `chattr +D -R'.

- dirsync is maintained as new directories are created under
  a `chattr +D' directory.  Like `chattr +S'.

- Other filesystems can trivially be taught about dirsync.  It's just
  a matter of replacing `IS_SYNC(inode)' with `IS_DIRSYNC(inode)' in
  the directory update functions.  IS_SYNC will still be honoured when
  IS_DIRSYNC is used.

- Non-directory files do not have their dirsync flag propagated.  So
  an S_ISREG file which is created inside a dirsync directory will not
  have its dirsync bit set.  chattr needs to do this as well.

- There was a bit of version skew between e2fsprogs' idea of the
  inode flags and the kernel's.  That is sorted out here.

- `lsattr' shows the dirsync flag as "D".  The letter "D" was
  previously being used for Compressed_Dirty_File.  I changed
  Compressed_Dirty_File to use "Z".  Is that OK?

The mount(2) manpage needs to be taught about MS_DIRSYNC.
parent 7d608fac
...@@ -68,7 +68,7 @@ static int ext2_commit_chunk(struct page *page, unsigned from, unsigned to) ...@@ -68,7 +68,7 @@ static int ext2_commit_chunk(struct page *page, unsigned from, unsigned to)
int err = 0; int err = 0;
dir->i_version = ++event; dir->i_version = ++event;
page->mapping->a_ops->commit_write(NULL, page, from, to); page->mapping->a_ops->commit_write(NULL, page, from, to);
if (IS_SYNC(dir)) if (IS_DIRSYNC(dir))
err = write_one_page(page, 1); err = write_one_page(page, 1);
else else
unlock_page(page); unlock_page(page);
......
...@@ -429,6 +429,9 @@ struct inode * ext2_new_inode(struct inode * dir, int mode) ...@@ -429,6 +429,9 @@ struct inode * ext2_new_inode(struct inode * dir, int mode)
ei->i_flags = EXT2_I(dir)->i_flags; ei->i_flags = EXT2_I(dir)->i_flags;
if (S_ISLNK(mode)) if (S_ISLNK(mode))
ei->i_flags &= ~(EXT2_IMMUTABLE_FL|EXT2_APPEND_FL); ei->i_flags &= ~(EXT2_IMMUTABLE_FL|EXT2_APPEND_FL);
/* dirsync is only applied to directories */
if (!S_ISDIR(mode))
ei->i_flags &= ~EXT2_DIRSYNC_FL;
ei->i_faddr = 0; ei->i_faddr = 0;
ei->i_frag_no = 0; ei->i_frag_no = 0;
ei->i_frag_size = 0; ei->i_frag_size = 0;
...@@ -443,6 +446,8 @@ struct inode * ext2_new_inode(struct inode * dir, int mode) ...@@ -443,6 +446,8 @@ struct inode * ext2_new_inode(struct inode * dir, int mode)
ei->i_dir_start_lookup = 0; ei->i_dir_start_lookup = 0;
if (ei->i_flags & EXT2_SYNC_FL) if (ei->i_flags & EXT2_SYNC_FL)
inode->i_flags |= S_SYNC; inode->i_flags |= S_SYNC;
if (ei->i_flags & EXT2_DIRSYNC_FL)
inode->i_flags |= S_DIRSYNC;
inode->i_generation = EXT2_SB(sb)->s_next_generation++; inode->i_generation = EXT2_SB(sb)->s_next_generation++;
insert_inode_hash(inode); insert_inode_hash(inode);
mark_inode_dirty(inode); mark_inode_dirty(inode);
......
...@@ -58,7 +58,7 @@ void ext2_delete_inode (struct inode * inode) ...@@ -58,7 +58,7 @@ void ext2_delete_inode (struct inode * inode)
goto no_delete; goto no_delete;
EXT2_I(inode)->i_dtime = CURRENT_TIME; EXT2_I(inode)->i_dtime = CURRENT_TIME;
mark_inode_dirty(inode); mark_inode_dirty(inode);
ext2_update_inode(inode, IS_SYNC(inode)); ext2_update_inode(inode, inode_needs_sync(inode));
inode->i_size = 0; inode->i_size = 0;
if (inode->i_blocks) if (inode->i_blocks)
...@@ -905,7 +905,7 @@ void ext2_truncate (struct inode * inode) ...@@ -905,7 +905,7 @@ void ext2_truncate (struct inode * inode)
; ;
} }
inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode->i_mtime = inode->i_ctime = CURRENT_TIME;
if (IS_SYNC(inode)) { if (inode_needs_sync(inode)) {
sync_mapping_buffers(inode->i_mapping); sync_mapping_buffers(inode->i_mapping);
ext2_sync_inode (inode); ext2_sync_inode (inode);
} else { } else {
...@@ -1039,23 +1039,14 @@ void ext2_read_inode (struct inode * inode) ...@@ -1039,23 +1039,14 @@ void ext2_read_inode (struct inode * inode)
init_special_inode(inode, inode->i_mode, init_special_inode(inode, inode->i_mode,
le32_to_cpu(raw_inode->i_block[0])); le32_to_cpu(raw_inode->i_block[0]));
brelse (bh); brelse (bh);
inode->i_attr_flags = 0; if (ei->i_flags & EXT2_SYNC_FL)
if (ei->i_flags & EXT2_SYNC_FL) {
inode->i_attr_flags |= ATTR_FLAG_SYNCRONOUS;
inode->i_flags |= S_SYNC; inode->i_flags |= S_SYNC;
} if (ei->i_flags & EXT2_APPEND_FL)
if (ei->i_flags & EXT2_APPEND_FL) {
inode->i_attr_flags |= ATTR_FLAG_APPEND;
inode->i_flags |= S_APPEND; inode->i_flags |= S_APPEND;
} if (ei->i_flags & EXT2_IMMUTABLE_FL)
if (ei->i_flags & EXT2_IMMUTABLE_FL) {
inode->i_attr_flags |= ATTR_FLAG_IMMUTABLE;
inode->i_flags |= S_IMMUTABLE; inode->i_flags |= S_IMMUTABLE;
} if (ei->i_flags & EXT2_NOATIME_FL)
if (ei->i_flags & EXT2_NOATIME_FL) {
inode->i_attr_flags |= ATTR_FLAG_NOATIME;
inode->i_flags |= S_NOATIME; inode->i_flags |= S_NOATIME;
}
return; return;
bad_inode: bad_inode:
......
...@@ -36,6 +36,9 @@ int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, ...@@ -36,6 +36,9 @@ int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
if (get_user(flags, (int *) arg)) if (get_user(flags, (int *) arg))
return -EFAULT; return -EFAULT;
if (!S_ISDIR(inode->i_mode))
flags &= ~EXT2_DIRSYNC_FL;
oldflags = ei->i_flags; oldflags = ei->i_flags;
/* /*
......
...@@ -490,6 +490,9 @@ struct inode * ext3_new_inode (handle_t *handle, ...@@ -490,6 +490,9 @@ struct inode * ext3_new_inode (handle_t *handle,
ei->i_flags = EXT3_I(dir)->i_flags & ~EXT3_INDEX_FL; ei->i_flags = EXT3_I(dir)->i_flags & ~EXT3_INDEX_FL;
if (S_ISLNK(mode)) if (S_ISLNK(mode))
ei->i_flags &= ~(EXT3_IMMUTABLE_FL|EXT3_APPEND_FL); ei->i_flags &= ~(EXT3_IMMUTABLE_FL|EXT3_APPEND_FL);
/* dirsync only applies to directories */
if (!S_ISDIR(mode))
ei->i_flags &= ~EXT3_DIRSYNC_FL;
#ifdef EXT3_FRAGMENTS #ifdef EXT3_FRAGMENTS
ei->i_faddr = 0; ei->i_faddr = 0;
ei->i_frag_no = 0; ei->i_frag_no = 0;
...@@ -506,7 +509,9 @@ struct inode * ext3_new_inode (handle_t *handle, ...@@ -506,7 +509,9 @@ struct inode * ext3_new_inode (handle_t *handle,
if (ei->i_flags & EXT3_SYNC_FL) if (ei->i_flags & EXT3_SYNC_FL)
inode->i_flags |= S_SYNC; inode->i_flags |= S_SYNC;
if (IS_SYNC(inode)) if (ei->i_flags & EXT3_DIRSYNC_FL)
inode->i_flags |= S_DIRSYNC;
if (IS_DIRSYNC(inode))
handle->h_sync = 1; handle->h_sync = 1;
insert_inode_hash(inode); insert_inode_hash(inode);
inode->i_generation = sb->u.ext3_sb.s_next_generation++; inode->i_generation = sb->u.ext3_sb.s_next_generation++;
......
...@@ -2160,23 +2160,14 @@ void ext3_read_inode(struct inode * inode) ...@@ -2160,23 +2160,14 @@ void ext3_read_inode(struct inode * inode)
} else } else
init_special_inode(inode, inode->i_mode, init_special_inode(inode, inode->i_mode,
le32_to_cpu(iloc.raw_inode->i_block[0])); le32_to_cpu(iloc.raw_inode->i_block[0]));
/* inode->i_attr_flags = 0; unused */ if (ei->i_flags & EXT3_SYNC_FL)
if (ei->i_flags & EXT3_SYNC_FL) {
/* inode->i_attr_flags |= ATTR_FLAG_SYNCRONOUS; unused */
inode->i_flags |= S_SYNC; inode->i_flags |= S_SYNC;
} if (ei->i_flags & EXT3_APPEND_FL)
if (ei->i_flags & EXT3_APPEND_FL) {
/* inode->i_attr_flags |= ATTR_FLAG_APPEND; unused */
inode->i_flags |= S_APPEND; inode->i_flags |= S_APPEND;
} if (ei->i_flags & EXT3_IMMUTABLE_FL)
if (ei->i_flags & EXT3_IMMUTABLE_FL) {
/* inode->i_attr_flags |= ATTR_FLAG_IMMUTABLE; unused */
inode->i_flags |= S_IMMUTABLE; inode->i_flags |= S_IMMUTABLE;
} if (ei->i_flags & EXT3_NOATIME_FL)
if (ei->i_flags & EXT3_NOATIME_FL) {
/* inode->i_attr_flags |= ATTR_FLAG_NOATIME; unused */
inode->i_flags |= S_NOATIME; inode->i_flags |= S_NOATIME;
}
return; return;
bad_inode: bad_inode:
......
...@@ -43,6 +43,9 @@ int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, ...@@ -43,6 +43,9 @@ int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
if (get_user(flags, (int *) arg)) if (get_user(flags, (int *) arg))
return -EFAULT; return -EFAULT;
if (!S_ISDIR(inode->i_mode))
flags &= ~EXT3_DIRSYNC_FL;
oldflags = ei->i_flags; oldflags = ei->i_flags;
/* The JOURNAL_DATA flag is modifiable only by root */ /* The JOURNAL_DATA flag is modifiable only by root */
......
...@@ -502,7 +502,7 @@ static int ext3_create (struct inode * dir, struct dentry * dentry, int mode) ...@@ -502,7 +502,7 @@ static int ext3_create (struct inode * dir, struct dentry * dentry, int mode)
return PTR_ERR(handle); return PTR_ERR(handle);
} }
if (IS_SYNC(dir)) if (IS_DIRSYNC(dir))
handle->h_sync = 1; handle->h_sync = 1;
inode = ext3_new_inode (handle, dir, mode); inode = ext3_new_inode (handle, dir, mode);
...@@ -533,7 +533,7 @@ static int ext3_mknod (struct inode * dir, struct dentry *dentry, ...@@ -533,7 +533,7 @@ static int ext3_mknod (struct inode * dir, struct dentry *dentry,
return PTR_ERR(handle); return PTR_ERR(handle);
} }
if (IS_SYNC(dir)) if (IS_DIRSYNC(dir))
handle->h_sync = 1; handle->h_sync = 1;
inode = ext3_new_inode (handle, dir, mode); inode = ext3_new_inode (handle, dir, mode);
...@@ -566,7 +566,7 @@ static int ext3_mkdir(struct inode * dir, struct dentry * dentry, int mode) ...@@ -566,7 +566,7 @@ static int ext3_mkdir(struct inode * dir, struct dentry * dentry, int mode)
return PTR_ERR(handle); return PTR_ERR(handle);
} }
if (IS_SYNC(dir)) if (IS_DIRSYNC(dir))
handle->h_sync = 1; handle->h_sync = 1;
inode = ext3_new_inode (handle, dir, S_IFDIR); inode = ext3_new_inode (handle, dir, S_IFDIR);
...@@ -860,7 +860,7 @@ static int ext3_rmdir (struct inode * dir, struct dentry *dentry) ...@@ -860,7 +860,7 @@ static int ext3_rmdir (struct inode * dir, struct dentry *dentry)
if (!bh) if (!bh)
goto end_rmdir; goto end_rmdir;
if (IS_SYNC(dir)) if (IS_DIRSYNC(dir))
handle->h_sync = 1; handle->h_sync = 1;
inode = dentry->d_inode; inode = dentry->d_inode;
...@@ -916,7 +916,7 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry) ...@@ -916,7 +916,7 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry)
return PTR_ERR(handle); return PTR_ERR(handle);
} }
if (IS_SYNC(dir)) if (IS_DIRSYNC(dir))
handle->h_sync = 1; handle->h_sync = 1;
retval = -ENOENT; retval = -ENOENT;
...@@ -975,7 +975,7 @@ static int ext3_symlink (struct inode * dir, ...@@ -975,7 +975,7 @@ static int ext3_symlink (struct inode * dir,
return PTR_ERR(handle); return PTR_ERR(handle);
} }
if (IS_SYNC(dir)) if (IS_DIRSYNC(dir))
handle->h_sync = 1; handle->h_sync = 1;
inode = ext3_new_inode (handle, dir, S_IFLNK|S_IRWXUGO); inode = ext3_new_inode (handle, dir, S_IFLNK|S_IRWXUGO);
...@@ -1033,7 +1033,7 @@ static int ext3_link (struct dentry * old_dentry, ...@@ -1033,7 +1033,7 @@ static int ext3_link (struct dentry * old_dentry,
return PTR_ERR(handle); return PTR_ERR(handle);
} }
if (IS_SYNC(dir)) if (IS_DIRSYNC(dir))
handle->h_sync = 1; handle->h_sync = 1;
inode->i_ctime = CURRENT_TIME; inode->i_ctime = CURRENT_TIME;
...@@ -1073,7 +1073,7 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry, ...@@ -1073,7 +1073,7 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry,
return PTR_ERR(handle); return PTR_ERR(handle);
} }
if (IS_SYNC(old_dir) || IS_SYNC(new_dir)) if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
handle->h_sync = 1; handle->h_sync = 1;
old_bh = ext3_find_entry (old_dentry, &old_de); old_bh = ext3_find_entry (old_dentry, &old_de);
......
...@@ -981,6 +981,15 @@ void update_atime (struct inode *inode) ...@@ -981,6 +981,15 @@ void update_atime (struct inode *inode)
do_atime_update(inode); do_atime_update(inode);
} /* End Function update_atime */ } /* End Function update_atime */
int inode_needs_sync(struct inode *inode)
{
if (IS_SYNC(inode))
return 1;
if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode))
return 1;
return 0;
}
EXPORT_SYMBOL(inode_needs_sync);
/* /*
* Quota functions that want to walk the inode lists.. * Quota functions that want to walk the inode lists..
......
...@@ -197,6 +197,7 @@ static int show_vfsmnt(struct seq_file *m, void *v) ...@@ -197,6 +197,7 @@ static int show_vfsmnt(struct seq_file *m, void *v)
char *str; char *str;
} fs_info[] = { } fs_info[] = {
{ MS_SYNCHRONOUS, ",sync" }, { MS_SYNCHRONOUS, ",sync" },
{ MS_DIRSYNC, ",dirsync" },
{ MS_MANDLOCK, ",mand" }, { MS_MANDLOCK, ",mand" },
{ MS_NOATIME, ",noatime" }, { MS_NOATIME, ",noatime" },
{ MS_NODIRATIME, ",nodiratime" }, { MS_NODIRATIME, ",nodiratime" },
......
...@@ -211,10 +211,15 @@ struct ext2_group_desc ...@@ -211,10 +211,15 @@ struct ext2_group_desc
#define EXT2_ECOMPR_FL 0x00000800 /* Compression error */ #define EXT2_ECOMPR_FL 0x00000800 /* Compression error */
/* End compression flags --- maybe not all used */ /* End compression flags --- maybe not all used */
#define EXT2_BTREE_FL 0x00001000 /* btree format dir */ #define EXT2_BTREE_FL 0x00001000 /* btree format dir */
#define EXT2_INDEX_FL 0x00001000 /* hash-indexed directory */
#define EXT2_IMAGIC_FL 0x00002000 /* AFS directory */
#define EXT2_JOURNAL_DATA_FL 0x00004000 /* Reserved for ext3 */
#define EXT2_NOTAIL_FL 0x00008000 /* file tail should not be merged */
#define EXT2_DIRSYNC_FL 0x00010000 /* dirsync behaviour (directories only) */
#define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */ #define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */
#define EXT2_FL_USER_VISIBLE 0x00001FFF /* User visible flags */ #define EXT2_FL_USER_VISIBLE 0x00011FFF /* User visible flags */
#define EXT2_FL_USER_MODIFIABLE 0x000000FF /* User modifiable flags */ #define EXT2_FL_USER_MODIFIABLE 0x000100FF /* User modifiable flags */
/* /*
* ioctl commands * ioctl commands
......
...@@ -203,10 +203,12 @@ struct ext3_group_desc ...@@ -203,10 +203,12 @@ struct ext3_group_desc
#define EXT3_INDEX_FL 0x00001000 /* hash-indexed directory */ #define EXT3_INDEX_FL 0x00001000 /* hash-indexed directory */
#define EXT3_IMAGIC_FL 0x00002000 /* AFS directory */ #define EXT3_IMAGIC_FL 0x00002000 /* AFS directory */
#define EXT3_JOURNAL_DATA_FL 0x00004000 /* file data should be journaled */ #define EXT3_JOURNAL_DATA_FL 0x00004000 /* file data should be journaled */
#define EXT3_NOTAIL_FL 0x00008000 /* file tail should not be merged */
#define EXT3_DIRSYNC_FL 0x00010000 /* dirsync behaviour (directories only) */
#define EXT3_RESERVED_FL 0x80000000 /* reserved for ext3 lib */ #define EXT3_RESERVED_FL 0x80000000 /* reserved for ext3 lib */
#define EXT3_FL_USER_VISIBLE 0x00005FFF /* User visible flags */ #define EXT3_FL_USER_VISIBLE 0x00015FFF /* User visible flags */
#define EXT3_FL_USER_MODIFIABLE 0x000000FF /* User modifiable flags */ #define EXT3_FL_USER_MODIFIABLE 0x000100FF /* User modifiable flags */
/* /*
* Inode dynamic state flags * Inode dynamic state flags
......
...@@ -107,6 +107,7 @@ extern int leases_enable, dir_notify_enable, lease_break_time; ...@@ -107,6 +107,7 @@ extern int leases_enable, dir_notify_enable, lease_break_time;
#define MS_SYNCHRONOUS 16 /* Writes are synced at once */ #define MS_SYNCHRONOUS 16 /* Writes are synced at once */
#define MS_REMOUNT 32 /* Alter flags of a mounted FS */ #define MS_REMOUNT 32 /* Alter flags of a mounted FS */
#define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */ #define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */
#define MS_DIRSYNC 128 /* Directory modifications are synchronous */
#define MS_NOATIME 1024 /* Do not update access times. */ #define MS_NOATIME 1024 /* Do not update access times. */
#define MS_NODIRATIME 2048 /* Do not update directory access times */ #define MS_NODIRATIME 2048 /* Do not update directory access times */
#define MS_BIND 4096 #define MS_BIND 4096
...@@ -137,6 +138,7 @@ extern int leases_enable, dir_notify_enable, lease_break_time; ...@@ -137,6 +138,7 @@ extern int leases_enable, dir_notify_enable, lease_break_time;
#define S_IMMUTABLE 16 /* Immutable file */ #define S_IMMUTABLE 16 /* Immutable file */
#define S_DEAD 32 /* removed, but still open directory */ #define S_DEAD 32 /* removed, but still open directory */
#define S_NOQUOTA 64 /* Inode is not counted to quota */ #define S_NOQUOTA 64 /* Inode is not counted to quota */
#define S_DIRSYNC 128 /* Directory modifications are synchronous */
/* /*
* Note that nosuid etc flags are inode-specific: setting some file-system * Note that nosuid etc flags are inode-specific: setting some file-system
...@@ -154,7 +156,10 @@ extern int leases_enable, dir_notify_enable, lease_break_time; ...@@ -154,7 +156,10 @@ extern int leases_enable, dir_notify_enable, lease_break_time;
#define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg)) #define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg))
#define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY) #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY)
#define IS_SYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS) || ((inode)->i_flags & S_SYNC)) #define IS_SYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS) || \
((inode)->i_flags & S_SYNC))
#define IS_DIRSYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS|MS_DIRSYNC) || \
((inode)->i_flags & (S_SYNC|S_DIRSYNC)))
#define IS_MANDLOCK(inode) __IS_FLG(inode, MS_MANDLOCK) #define IS_MANDLOCK(inode) __IS_FLG(inode, MS_MANDLOCK)
#define IS_QUOTAINIT(inode) ((inode)->i_flags & S_QUOTA) #define IS_QUOTAINIT(inode) ((inode)->i_flags & S_QUOTA)
...@@ -398,7 +403,6 @@ struct inode { ...@@ -398,7 +403,6 @@ struct inode {
unsigned char i_sock; unsigned char i_sock;
atomic_t i_writecount; atomic_t i_writecount;
unsigned int i_attr_flags;
__u32 i_generation; __u32 i_generation;
union { union {
void *generic_ip; void *generic_ip;
...@@ -1184,6 +1188,7 @@ extern void iput(struct inode *); ...@@ -1184,6 +1188,7 @@ extern void iput(struct inode *);
extern void force_delete(struct inode *); extern void force_delete(struct inode *);
extern struct inode * igrab(struct inode *); extern struct inode * igrab(struct inode *);
extern ino_t iunique(struct super_block *, ino_t); extern ino_t iunique(struct super_block *, ino_t);
extern int inode_needs_sync(struct inode *inode);
extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *);
extern struct inode * iget_locked(struct super_block *, unsigned long); extern struct inode * iget_locked(struct super_block *, unsigned long);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment