commit 0e7c48aa1565bb5f72e92938243c9c1b609889b4
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Fri Apr 27 16:08:10 2007 -0400
odf bug: dget odf/sb when reading/writting sb file
diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c
index
6959beaa63b4fd928cec628d0a3abf999dbfc553..c76c53757ddf366eb52c83a00010d877cdbdfd21
100644
--- a/fs/unionfs/file.c
+++ b/fs/unionfs/file.c
@@ -50,7 +50,7 @@ static ssize_t unionfs_aio_read(struct k
int err;
err = generic_file_aio_read(iocb, iov, nr_segs, pos);
-
+
if (err == -EIOCBQUEUED)
err = wait_on_sync_kiocb(iocb);
diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index
bb63eb614149655f6c808c4a02fb9961be4bc7c8..335c2213b33fc2ea212ac4fd079bb12089ca2c36
100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -1490,7 +1490,9 @@ int odf_write_sb_data(struct odf_sb_info
err = -EINVAL;
goto out;
}
- else if (d_content->d_inode) {
+
+ dget(d_content);
+ if (d_content->d_inode) {
/* truncate */
attr.ia_size = 0;
attr.ia_valid = ATTR_SIZE | ATTR_FORCE;
@@ -1630,7 +1632,9 @@ char *odf_read_sb_data(struct odf_sb_inf
err = -EINVAL;
goto out_err;
}
- else if (!d_content->d_inode) {
+
+ dget(d_content);
+ if (!d_content->d_inode) {
dput(d_content);
err = -EINVAL;
goto out_err;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs