summaryrefslogtreecommitdiff
path: root/fs/aufs/hfsplus.c
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-08 01:01:14 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-08 01:01:14 -0300
commite5fd91f1ef340da553f7a79da9540c3db711c937 (patch)
treeb11842027dc6641da63f4bcc524f8678263304a3 /fs/aufs/hfsplus.c
parent2a9b0348e685a63d97486f6749622b61e9e3292f (diff)
Linux-libre 4.2-gnu
Diffstat (limited to 'fs/aufs/hfsplus.c')
-rw-r--r--fs/aufs/hfsplus.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/fs/aufs/hfsplus.c b/fs/aufs/hfsplus.c
deleted file mode 100644
index ced054639..000000000
--- a/fs/aufs/hfsplus.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2010-2015 Junjiro R. Okajima
- *
- * This program, aufs is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/*
- * special support for filesystems which aqucires an inode mutex
- * at final closing a file, eg, hfsplus.
- *
- * This trick is very simple and stupid, just to open the file before really
- * neceeary open to tell hfsplus that this is not the final closing.
- * The caller should call au_h_open_pre() after acquiring the inode mutex,
- * and au_h_open_post() after releasing it.
- */
-
-#include "aufs.h"
-
-struct file *au_h_open_pre(struct dentry *dentry, aufs_bindex_t bindex,
- int force_wr)
-{
- struct file *h_file;
- struct dentry *h_dentry;
-
- h_dentry = au_h_dptr(dentry, bindex);
- AuDebugOn(!h_dentry);
- AuDebugOn(d_is_negative(h_dentry));
-
- h_file = NULL;
- if (au_test_hfsplus(h_dentry->d_sb)
- && d_is_reg(h_dentry))
- h_file = au_h_open(dentry, bindex,
- O_RDONLY | O_NOATIME | O_LARGEFILE,
- /*file*/NULL, force_wr);
- return h_file;
-}
-
-void au_h_open_post(struct dentry *dentry, aufs_bindex_t bindex,
- struct file *h_file)
-{
- if (h_file) {
- fput(h_file);
- au_sbr_put(dentry->d_sb, bindex);
- }
-}