Linux Kernel
3.7.1
|
#include <linux/lglock.h>
Go to the source code of this file.
Data Structures | |
struct | open_flags |
Variables | |
struct lglock | vfsmount_lock |
spinlock_t | inode_sb_list_lock |
__inode_permission - Check for access rights to a given inode : Inode to check permission on : Right to check for (MAY_READ, MAY_WRITE, MAY_EXEC)
Check for read/write/execute permissions on an inode.
When checking for MAY_APPEND, MAY_WRITE must also be set in .
This does not check for a read-only file system. You probably want inode_permission().
__mnt_drop_write - give up write access to a mount : the mount on which to give up write access
Tells the low-level filesystem that we are done performing writes to it. Must be matched with __mnt_want_write() call above.
Definition at line 420 of file namespace.c.
Definition at line 442 of file namespace.c.
__mnt_want_write - get write access to a mount without freeze protection : the mount on which to take a write
This tells the low-level filesystem that a write is about to be performed to it, and makes sure that writes are allowed (mnt it read-write) before returning success. This operation does not protect against filesystem being frozen. When the write operation is finished, __mnt_drop_write() must be called. This is effectively a refcount.
Definition at line 301 of file namespace.c.
Definition at line 383 of file namespace.c.
Definition at line 574 of file char_dev.c.
Definition at line 2130 of file namespace.c.
Definition at line 2163 of file namespace.c.
void evict_inodes | ( | struct super_block * | sb | ) |
evict_inodes - evict all evictable inodes for a superblock : superblock to operate on
Make sure that no inodes with zero refcount are retained. This is called by superblock shutdown after having MS_ACTIVE flag removed, so any inode reaching zero refcount during or after that call will be immediately evicted.
void file_sb_list_add | ( | struct file * | f, |
struct super_block * | sb | ||
) |
Definition at line 383 of file file_table.c.
Definition at line 397 of file file_table.c.
Definition at line 1943 of file namespace.c.
Definition at line 106 of file file_table.c.
bool grab_super_passive | ( | struct super_block * | sb | ) |
Definition at line 188 of file fs-writeback.c.
int invalidate_inodes | ( | struct super_block * | sb, |
bool | kill_dirty | ||
) |
invalidate_inodes - attempt to free all inodes on a superblock : superblock to operate on : flag to guide handling of dirty inodes
Attempts to free all inodes for a given superblock. If there were any busy inodes return a non-zero value, else zero. If is set, discard dirty inodes too, otherwise treat them as busy.
void mark_files_ro | ( | struct super_block * | sb | ) |
mark_files_ro - mark all files read-only : superblock in question
All files are marked read-only. We don't care about pending delete files so this should be used in 'force' mode only.
Definition at line 444 of file file_table.c.
Definition at line 2605 of file namespace.c.
int sb_prepare_remount_readonly | ( | struct super_block * | ) |
Definition at line 502 of file namespace.c.
|
read |
spinlock_t inode_sb_list_lock |