Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
truncate.c File Reference
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/fcntl.h>
#include <linux/time.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/buffer_head.h>
#include <linux/blkdev.h>
#include <linux/sched.h>
#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"

Go to the source code of this file.

Macros

#define DIRECT_BLOCK   ((inode->i_size + uspi->s_bsize - 1) >> uspi->s_bshift)
 
#define DIRECT_FRAGMENT   ((inode->i_size + uspi->s_fsize - 1) >> uspi->s_fshift)
 

Functions

int ufs_truncate (struct inode *inode, loff_t old_i_size)
 
int ufs_setattr (struct dentry *dentry, struct iattr *attr)
 

Variables

struct inode_operations ufs_file_inode_operations
 

Macro Definition Documentation

#define DIRECT_BLOCK   ((inode->i_size + uspi->s_bsize - 1) >> uspi->s_bshift)

Definition at line 62 of file truncate.c.

#define DIRECT_FRAGMENT   ((inode->i_size + uspi->s_fsize - 1) >> uspi->s_fshift)

Definition at line 63 of file truncate.c.

Function Documentation

int ufs_setattr ( struct dentry dentry,
struct iattr attr 
)

Definition at line 493 of file truncate.c.

int ufs_truncate ( struct inode inode,
loff_t  old_i_size 
)

Definition at line 443 of file truncate.c.

Variable Documentation

struct inode_operations ufs_file_inode_operations
Initial value:
= {
.setattr = ufs_setattr,
}

Definition at line 521 of file truncate.c.