diff options
Diffstat (limited to 'fs/logfs')
| -rw-r--r-- | fs/logfs/dev_bdev.c | 1 | ||||
| -rw-r--r-- | fs/logfs/dir.c | 5 | ||||
| -rw-r--r-- | fs/logfs/readwrite.c | 2 | 
3 files changed, 7 insertions, 1 deletions
| diff --git a/fs/logfs/dev_bdev.c b/fs/logfs/dev_bdev.c index 1adc8d455f0e..df0de27c2733 100644 --- a/fs/logfs/dev_bdev.c +++ b/fs/logfs/dev_bdev.c @@ -10,6 +10,7 @@  #include <linux/blkdev.h>  #include <linux/buffer_head.h>  #include <linux/gfp.h> +#include <linux/prefetch.h>  #define PAGE_OFS(ofs) ((ofs) & (PAGE_SIZE-1)) diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c index 9ed89d1663f8..f34c9cde9e94 100644 --- a/fs/logfs/dir.c +++ b/fs/logfs/dir.c @@ -273,6 +273,8 @@ static int logfs_rmdir(struct inode *dir, struct dentry *dentry)  {  	struct inode *inode = dentry->d_inode; +	dentry_unhash(dentry); +  	if (!logfs_empty_dir(inode))  		return -ENOTEMPTY; @@ -622,6 +624,9 @@ static int logfs_rename_cross(struct inode *old_dir, struct dentry *old_dentry,  	loff_t pos;  	int err; +	if (new_dentry->d_inode && S_ISDIR(new_dentry->d_inode->i_mode)) +		dentry_unhash(new_dentry); +  	/* 1. locate source dd */  	err = logfs_get_dd(old_dir, old_dentry, &dd, &pos);  	if (err) diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c index 9e22085231b3..d8d09380c7de 100644 --- a/fs/logfs/readwrite.c +++ b/fs/logfs/readwrite.c @@ -481,7 +481,7 @@ static int inode_write_alias(struct super_block *sb,  			val = inode_val0(inode);  			break;  		case INODE_USED_OFS: -			val = cpu_to_be64(li->li_used_bytes);; +			val = cpu_to_be64(li->li_used_bytes);  			break;  		case INODE_SIZE_OFS:  			val = cpu_to_be64(i_size_read(inode)); |