diff --git a/fs/rustezfs/ezfs.rs b/fs/rustezfs/ezfs.rs index bb17150100315b..a34a81541d3a4b 100644 --- a/fs/rustezfs/ezfs.rs +++ b/fs/rustezfs/ezfs.rs @@ -70,7 +70,7 @@ impl RustEzFs { } fn iget(sb: &SuperBlock, ino: usize) -> Result>> { - pr_info!("iget(ino={ino})\n"); + // pr_info!("iget(ino={ino})\n"); if !Self::inode_allocated(sb, ino)? { return Err(ENOENT); @@ -326,7 +326,6 @@ impl FileSystem for RustEzFs { sb: &mut SuperBlock, mapper: Option>, ) -> Result { - pr_info!("fill_super()\n"); let Some(mapper) = mapper else { return Err(EINVAL); }; @@ -349,7 +348,6 @@ impl FileSystem for RustEzFs { } fn init_root(sb: &SuperBlock) -> Result> { - pr_info!("init_root()\n"); let inode = Self::iget(sb, EZFS_ROOT_INODE_NUMBER)?; dentry::Root::try_new(inode) } @@ -367,7 +365,7 @@ impl kernel::inode::Operations for RustEzFs { let dir_entry = Self::find_dir_entry(parent, &dentry)?; let inode = if let Some(entry) = dir_entry { - pr_info!("Inode found: {:?}\n", entry.inode_no()); + // pr_info!("Inode found: {:?}\n", entry.inode_no()); Some(Self::iget(sb, entry.inode_no().try_into()?)?) } else { None @@ -753,10 +751,6 @@ impl iomap::Operations for RustEzFs { }; match case_type { - WriteCase::New => { - pr_info!("adding to an empty file\n"); - return Err(EIO); - } WriteCase::Within => {} WriteCase::Extend => { for i in ez_blk_count..blocks_needed { @@ -766,7 +760,7 @@ impl iomap::Operations for RustEzFs { map.set_flags(iomap::map_flags::NEW); } - WriteCase::Move => { + WriteCase::New | WriteCase::Move => { // Let's try to find a region of sequential free blocks // of size `blocks_needed` to move our file to let mut curr_block = 0; diff --git a/rust/kernel/folio.rs b/rust/kernel/folio.rs index 6fd9f9596a6e3f..e774949c82a4d8 100644 --- a/rust/kernel/folio.rs +++ b/rust/kernel/folio.rs @@ -213,7 +213,6 @@ impl DerefMut for MapGuardMut<'_> { impl Drop for MapGuardMut<'_> { fn drop(&mut self) { - pr_info!("Dropped guard, set pag dirty and unmapped\n"); // SAFETY: A `MapGuard` instance is only created when `kmap` succeeds, so it's ok to unmap // it when the guard is dropped. unsafe { @@ -226,13 +225,11 @@ impl Drop for MapGuardMut<'_> { // SAFETY: `raw_lock` calls folio_lock, which actually locks the folio. unsafe impl Lockable for Folio { fn raw_lock(&self) { - pr_info!("Locked folio\n"); // SAFETY: The folio is valid because the shared reference implies a non-zero refcount. unsafe { bindings::folio_lock(self.0.get()) } } unsafe fn unlock(&self) { - pr_info!("unlocked folio\n"); // SAFETY: The safety requirements guarantee that the folio is locked. unsafe { bindings::folio_unlock(self.0.get()) } } diff --git a/rust/kernel/fs/file.rs b/rust/kernel/fs/file.rs index 10b7ee5153df2f..9de73c2fe3da3d 100644 --- a/rust/kernel/fs/file.rs +++ b/rust/kernel/fs/file.rs @@ -726,7 +726,6 @@ impl Ops { kiocb: *mut bindings::kiocb, iter: *mut bindings::iov_iter, ) -> isize { - pr_info!("read_iter_callback\n"); return unsafe { bindings::generic_file_read_iter(kiocb, iter) }; } @@ -739,7 +738,6 @@ impl Ops { iter: *mut bindings::iov_iter, ) -> isize { from_result(|| { - pr_info!("write_iter_callback\n"); // SAFETY: The caller provides a valid `struct kiocb` associated with a // `` file. let kiocb = unsafe { Kiocb::from_raw(kiocb) };